package dao

import (
	"time"
)

// 这是 LiInstantDeliveryLog 的全局公开dao对象
var LiInstantDeliveryLogDao = liInstantDeliveryLogDao{}

// 这是 li_instant_delivery_log表 的实体类
type LiInstantDeliveryLog struct {
	Id                  int       `json:"id" form:"id" v:"id"`                                                          // ID
	CreateTime          time.Time `json:"create_time" form:"create_time" v:"create_time"`                               // 创建时间
	CancelReason        string    `json:"cancel_reason" form:"cancel_reason" v:"cancel_reason"`                         // 订单取消原因
	DeliveryOrderSn     string    `json:"delivery_order_sn" form:"delivery_order_sn" v:"delivery_order_sn"`             // 即时配送订单号
	DeliveryOrderStatus string    `json:"delivery_order_status" form:"delivery_order_status" v:"delivery_order_status"` // 即时配送订单状态
	DistributorMobile   string    `json:"distributor_mobile" form:"distributor_mobile" v:"distributor_mobile"`          // 配送员手机号
	DistributorName     string    `json:"distributor_name" form:"distributor_name" v:"distributor_name"`                // 配送员姓名
	DistributorNumber   string    `json:"distributor_number" form:"distributor_number" v:"distributor_number"`          // 即时配送骑手编号
	OrderSn             string    `json:"order_sn" form:"order_sn" v:"order_sn"`                                        // 商城订单号

}

// 注意:这是 LiInstantDeliveryLog 的私有dao对象
type liInstantDeliveryLogDao struct {
	Insert func(arg LiInstantDeliveryLog) int                  //插入一条记录
	Update func(arg LiInstantDeliveryLog) int                  //更新一条记录
	Delete func(arg LiInstantDeliveryLog) int                  //删除一条记录
	Select func(arg LiInstantDeliveryLog) LiInstantDeliveryLog //获取一条记录
}
